<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'AddUser.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->


<script type="text/javascript">
function check(){

 var projectname=document.getElementById('projectname');


 if(!projectname.value){
 alert("请输入工作组名!");
 projectname.focus();
 return false;
 }
 if(projectname.value.length>15){
  alert("项目名长度超出15!");
 projectname.focus();
 return false;
 }
 }
</script>

<style>       
body,h2{    
padding:0px;    
margin:0px auto;    
}    
#wrapper{    
width:300px;    
height:300px;    
padding:0px;    
margin:0px auto; 
border:1px   #4682B4   solid;    
}    
h2{ 
  background-color: #4682B4 ;    
  color:#FFFFFF;    
  padding:10px 100px;  
  } 
   span{ 
   color:#FF0000;    
} 
   #shoulder{ 
      padding:10px;  
   line-height:50px;   
   background-color: #E6E6FA ;  
   
}    
#fore{ 
   text-align:left; 
    padding:10px;     }       
 #button{ 
   background-color:#FF0000;    
padding:0px;    
color:#FFFFFF;    }   
 #bt{ 
   padding-left:20px;  
  margin-top:30px;  } 
  comments {  
 width:100%;  
 overflow:auto;  
 word-break:break-all;
  }
</style>

</head>

<body>
	<br>

	<form name="updateproject" action="updateproject"
		enctype="multipart/form-data" method="post"  onsubmit="return check()">
		<input type="hidden" name="project.projectFilename" size="20" value=<s:property value="project.projectFilename" /> >
		<input type="hidden" name="project.projectid" size="20" value=<s:property value="project.projectid" /> >
		<table align="center">
			<tr align="left">
				<td> 项 目 名：<input type="text" id="projectname" name="project.projectName" size="20"
					value=<s:property value="project.projectName" />></td>
			</tr>
			<tr align=""left"">
				<td>项目描述：<input type="textarea" cols="200" rows="4"
					name="project.projectDescribe"
					value=<s:property value="project.projectDescribe" />></td>
			</tr>
			<tr>
				
				<td><s:if test=" project.projectFilename==''">
							项目文件：暂无
							</s:if> <s:else>
						项目文件：<a
							href="projectfiledownload.action?projectid=<s:property value="project.projectid" />">
							下载文件</a>
					</s:else></td>
			</tr>


			<tr align="right">
				<td>更新项目文件<input type="file" name="projectfile" size="20"></td>
			</tr>
			<tr>
				<td>工作组：<select name="project.workgroupName">
						<option value="<s:property value="project.workgroupName" />"><s:property value="project.workgroupName" /></option>
						<s:iterator value="grouplist" id="workgroup">
							<option value="<s:property value="#workgroup.workgroupName" />">
								<s:property value="#workgroup.workgroupName" />
							</option>
						</s:iterator>

				</select>
				</td>
			</tr>

			<tr align="center">
				<td><input type=submit name=submit2 value="确认修改"></td>
			</tr>
		</table>
	</form>
</body>
</html>
